package com.accounting.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String des;
	private Set adminRoles = new HashSet(0);
	private Set roleResources = new HashSet(0);

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** minimal constructor */
	public Role(Integer id, String name, String des) {
		this.id = id;
		this.name = name;
		this.des = des;
	}

	/** full constructor */
	public Role(Integer id, String name, String des, Set adminRoles,
			Set roleResources) {
		this.id = id;
		this.name = name;
		this.des = des;
		this.adminRoles = adminRoles;
		this.roleResources = roleResources;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public Set getAdminRoles() {
		return this.adminRoles;
	}

	public void setAdminRoles(Set adminRoles) {
		this.adminRoles = adminRoles;
	}

	public Set getRoleResources() {
		return this.roleResources;
	}

	public void setRoleResources(Set roleResources) {
		this.roleResources = roleResources;
	}

}